package com.bysj.lms.mapper;

import com.bysj.lms.pojo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bysj.lms.pojo.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaojiakai
 * @since 2022-02-04
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    UserVo getByUsername(String username);

    List<UserVo> userList(@Param("name") String name);

    String[] getEmails(@Param("unames") Set<String> unames);

    String getEmail(String username);

}
